<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>登录</title>
</head>

<body>
  <h1>用户登录</h1>
  <form method="post">
    {% csrf_token %}
    {{ form.as_p }}
    <button type="submit">登录</button>
  </form>
  <p><a href="{% url 'register' %}">没有账户？注册</a></p>
</body>

</html>